home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / gcc / gcc260diffs.lha / gnu / src-patches / texinfo-3.1.diffs < prev    next >
Encoding:
Text File  |  1994-07-24  |  40.4 KB  |  1,428 lines

  1. diff -2rcN texinfo-3.1/INSTALL texinfo-3.1-amiga/INSTALL
  2. *** texinfo-3.1/INSTALL    Wed Dec  9 01:32:49 1992
  3. --- texinfo-3.1-amiga/INSTALL    Thu Feb 24 10:14:50 1994
  4. ***************
  5. *** 34,39 ****
  6.   
  7.   By default, `make install' will install the package's files in
  8. ! /usr/local/bin, /usr/local/lib, /usr/local/man, etc.  You can specify
  9. ! an installation prefix other than /usr/local by giving `configure' the
  10.   option `--prefix=PATH'.  Alternately, you can do so by giving a value
  11.   for the `prefix' variable when you run `make', e.g.,
  12. --- 34,39 ----
  13.   
  14.   By default, `make install' will install the package's files in
  15. ! /gnu/bin, /gnu/lib, /gnu/man, etc.  You can specify
  16. ! an installation prefix other than /gnu by giving `configure' the
  17.   option `--prefix=PATH'.  Alternately, you can do so by giving a value
  18.   for the `prefix' variable when you run `make', e.g.,
  19. diff -2rcN texinfo-3.1/INTRODUCTION texinfo-3.1-amiga/INTRODUCTION
  20. *** texinfo-3.1/INTRODUCTION    Tue May 11 22:27:18 1993
  21. --- texinfo-3.1-amiga/INTRODUCTION    Thu Feb 24 10:14:42 1994
  22. ***************
  23. *** 92,96 ****
  24.   
  25.     * Move the `texinfo.tex' file to an appropriate directory; the current
  26. !     directory will do.  (`/usr/local/lib/tex/inputs' might be a good place.
  27.       See ``Preparing to Use TeX'' in the Texinfo manual, for more
  28.       information.)
  29. --- 92,96 ----
  30.   
  31.     * Move the `texinfo.tex' file to an appropriate directory; the current
  32. !     directory will do.  (`/gnu/lib/tex/inputs' might be a good place.
  33.       See ``Preparing to Use TeX'' in the Texinfo manual, for more
  34.       information.)
  35. diff -2rcN texinfo-3.1/Makefile.in texinfo-3.1-amiga/Makefile.in
  36. *** texinfo-3.1/Makefile.in    Sun May 23 10:43:09 1993
  37. --- texinfo-3.1-amiga/Makefile.in    Thu Feb 24 10:13:04 1994
  38. ***************
  39. *** 42,49 ****
  40.   SHELL = /bin/sh
  41.   
  42. ! CFLAGS = -g
  43. ! LDFLAGS = -g
  44.   
  45. ! prefix = /usr/local
  46.   exec_prefix = $(prefix)
  47.   bindir = $(exec_prefix)/bin
  48. --- 42,49 ----
  49.   SHELL = /bin/sh
  50.   
  51. ! CFLAGS = -O2
  52. ! LDFLAGS =
  53.   
  54. ! prefix = /gnu
  55.   exec_prefix = $(prefix)
  56.   bindir = $(exec_prefix)/bin
  57. diff -2rcN texinfo-3.1/configure texinfo-3.1-amiga/configure
  58. *** texinfo-3.1/configure    Sun May 23 10:29:42 1993
  59. --- texinfo-3.1-amiga/configure    Thu Feb 24 10:53:46 1994
  60. ***************
  61. *** 98,102 ****
  62.     # Try the directory containing this script, then `..'.
  63.     prog=$0
  64. !   confdir=`echo $prog|sed 's%/[^/][^/]*$%%'`
  65.     test "X$confdir" = "X$prog" && confdir=.
  66.     srcdir=$confdir
  67. --- 98,102 ----
  68.     # Try the directory containing this script, then `..'.
  69.     prog=$0
  70. !   confdir=`echo $prog| sed 's|/$||' | sed 's|//|/|' | sed 's|/[^/]*$||'`
  71.     test "X$confdir" = "X$prog" && confdir=.
  72.     srcdir=$confdir
  73. ***************
  74. *** 253,258 ****
  75.   
  76.   echo checking for POSIXized ISC
  77. ! if test -d /etc/conf/kconfig.d &&
  78. !   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
  79.   then
  80.     ISC=1 # If later tests want to check for ISC.
  81. --- 253,258 ----
  82.   
  83.   echo checking for POSIXized ISC
  84. ! if test -d /gnu/etc/conf/kconfig.d &&
  85. !   grep _POSIX_VERSION /gnu/include/sys/unistd.h >/dev/null 2>&1
  86.   then
  87.     ISC=1 # If later tests want to check for ISC.
  88. ***************
  89. *** 474,478 ****
  90.   EOF
  91.   eval $compile
  92. ! if test -s conftest && (./conftest; exit) 2>/dev/null; then
  93.     {
  94.   test -n "$verbose" && \
  95. --- 474,481 ----
  96.   EOF
  97.   eval $compile
  98. ! # The Amiga is a non-reversed system.  Instead of the test program getting
  99. ! # a segfault, it causes enforcer hits or other nastiness, so don't run
  100. ! # the test program.
  101. ! if test -s conftest && false 2>/dev/null; then
  102.     {
  103.   test -n "$verbose" && \
  104. ***************
  105. *** 503,507 ****
  106.   rm -f conftest*
  107.   
  108. ! decl="#ifdef __GNUC__
  109.   #define alloca __builtin_alloca
  110.   #else
  111. --- 506,512 ----
  112.   rm -f conftest*
  113.   
  114. ! echo checking for alloca
  115. ! cat > conftest.c <<EOF
  116. ! #ifdef __GNUC__
  117.   #define alloca __builtin_alloca
  118.   #else
  119. ***************
  120. *** 516,523 ****
  121.   #endif
  122.   #endif
  123. - "
  124. - echo checking for alloca
  125. - cat > conftest.c <<EOF
  126. - $decl
  127.   int main() { exit(0); }
  128.   int t() { char *p = (char *) alloca(1); }
  129. --- 521,524 ----
  130. ***************
  131. *** 729,733 ****
  132.   exec_prefix\\1=\\2$exec_prefix%"
  133.   fi
  134. ! DEFS="`echo \"$DEFS\" | sed 's%[&\\\]%\\\&%g'`"
  135.   
  136.   trap 'rm -f config.status; exit 1' 1 3 15
  137. --- 730,734 ----
  138.   exec_prefix\\1=\\2$exec_prefix%"
  139.   fi
  140. ! DEFS="`/bin/echo $DEFS | sed 's%[&\\\]%\\\&%g'`"
  141.   
  142.   trap 'rm -f config.status; exit 1' 1 3 15
  143. diff -2rcN texinfo-3.1/info/Makefile.in texinfo-3.1-amiga/info/Makefile.in
  144. *** texinfo-3.1/info/Makefile.in    Sun May 23 03:05:14 1993
  145. --- texinfo-3.1-amiga/info/Makefile.in    Thu Feb 24 10:20:21 1994
  146. ***************
  147. *** 46,53 ****
  148.   SHELL = /bin/sh
  149.   
  150. ! CFLAGS = -g
  151. ! LDFLAGS = -g
  152.   
  153. ! prefix = /usr/local
  154.   exec_prefix = $(prefix)
  155.   bindir = $(exec_prefix)/bin
  156. --- 46,53 ----
  157.   SHELL = /bin/sh
  158.   
  159. ! CFLAGS = -O2
  160. ! LDFLAGS =
  161.   
  162. ! prefix = /gnu
  163.   exec_prefix = $(prefix)
  164.   bindir = $(exec_prefix)/bin
  165. diff -2rcN texinfo-3.1/info/filesys.h texinfo-3.1-amiga/info/filesys.h
  166. *** texinfo-3.1/info/filesys.h    Tue May 11 20:18:38 1993
  167. --- texinfo-3.1-amiga/info/filesys.h    Thu Feb 24 10:20:05 1994
  168. ***************
  169. *** 71,75 ****
  170.   /* The default value of INFOPATH. */
  171.   #if !defined (DEFAULT_INFOPATH)
  172. ! #  define DEFAULT_INFOPATH "/usr/gnu/info:/local/gnu/info:/usr/gnu/lib/info:/usr/gnu/lib/emacs/info:/usr/local/gnu/info:/usr/local/gnu/lib/info:/usr/local/gnu/lib/emacs/info:/usr/local/lib/info:/usr/local/lib/emacs/info:/usr/local/emacs/info:."
  173.   #endif /* !DEFAULT_INFOPATH */
  174.   
  175. --- 71,75 ----
  176.   /* The default value of INFOPATH. */
  177.   #if !defined (DEFAULT_INFOPATH)
  178. ! #  define DEFAULT_INFOPATH "/gnu/info:/local/info:/gnu/lib/emacs/info:/local/lib/emacs/info:."
  179.   #endif /* !DEFAULT_INFOPATH */
  180.   
  181. diff -2rcN texinfo-3.1/info/nodemenu.c texinfo-3.1-amiga/info/nodemenu.c
  182. *** texinfo-3.1/info/nodemenu.c    Mon Feb  1 18:47:48 1993
  183. --- texinfo-3.1-amiga/info/nodemenu.c    Thu Feb 24 10:17:54 1994
  184. ***************
  185. *** 40,46 ****
  186.     (File)Node                        Lines   Size   Containing File
  187.     ----------                        -----   ----   ---------------
  188. ! * (emacs)Buffers::                  48      2230   /usr/gnu/info/emacs/emacs-1
  189. ! * (autoconf)Writing configure.in::  123     58789  /usr/gnu/info/autoconf/autoconf-1
  190. ! * (dir)Top::                40      589    /usr/gnu/info/dir
  191.   */
  192.   static char *
  193. --- 40,46 ----
  194.     (File)Node                        Lines   Size   Containing File
  195.     ----------                        -----   ----   ---------------
  196. ! * (emacs)Buffers::                  48      2230   /gnu/info/emacs/emacs-1
  197. ! * (autoconf)Writing configure.in::  123     58789  /gnu/info/autoconf/autoconf-1
  198. ! * (dir)Top::                40      589    /gnu/info/dir
  199.   */
  200.   static char *
  201. diff -2rcN texinfo-3.1/info/nodes.h texinfo-3.1-amiga/info/nodes.h
  202. *** texinfo-3.1/info/nodes.h    Mon Feb  8 22:48:16 1993
  203. --- texinfo-3.1-amiga/info/nodes.h    Thu Feb 24 10:21:24 1994
  204. ***************
  205. *** 39,43 ****
  206.      node's file is a subfile.  In that case, NODE->parent is the logical
  207.      name of the file containing this node.  Both names are given as full
  208. !    paths, so you might have: node->filename = "/usr/gnu/info/emacs-1",
  209.      with node->parent = "/usr/gnu/info/emacs". */
  210.   typedef struct {
  211. --- 39,43 ----
  212.      node's file is a subfile.  In that case, NODE->parent is the logical
  213.      name of the file containing this node.  Both names are given as full
  214. !    paths, so you might have: node->filename = "/gnu/info/emacs-1",
  215.      with node->parent = "/usr/gnu/info/emacs". */
  216.   typedef struct {
  217. diff -2rcN texinfo-3.1/info/tilde.c texinfo-3.1-amiga/info/tilde.c
  218. *** texinfo-3.1/info/tilde.c    Mon Feb  1 18:40:20 1993
  219. --- texinfo-3.1-amiga/info/tilde.c    Thu Feb 24 11:17:55 1994
  220. ***************
  221. *** 226,230 ****
  222.         if (!temp_home)
  223.           {
  224. !           extern struct passwd *getpwuid ();
  225.             struct passwd *entry;
  226.   
  227. --- 226,230 ----
  228.         if (!temp_home)
  229.           {
  230. !           /* extern struct passwd *getpwuid (); */
  231.             struct passwd *entry;
  232.   
  233. diff -2rcN texinfo-3.1/libtxi/Makefile.in texinfo-3.1-amiga/libtxi/Makefile.in
  234. *** texinfo-3.1/libtxi/Makefile.in    Fri May 21 18:31:58 1993
  235. --- texinfo-3.1-amiga/libtxi/Makefile.in    Thu Feb 24 10:17:16 1994
  236. ***************
  237. *** 43,50 ****
  238.   SHELL = /bin/sh
  239.   
  240. ! CFLAGS = -g
  241. ! LDFLAGS = -g
  242.   
  243. ! prefix = /usr/local
  244.   exec_prefix = $(prefix)
  245.   bindir = $(exec_prefix)/bin
  246. --- 43,50 ----
  247.   SHELL = /bin/sh
  248.   
  249. ! CFLAGS = -O2
  250. ! LDFLAGS =
  251.   
  252. ! prefix = /gnu
  253.   exec_prefix = $(prefix)
  254.   bindir = $(exec_prefix)/bin
  255. diff -2rcN texinfo-3.1/makeinfo/Makefile.in texinfo-3.1-amiga/makeinfo/Makefile.in
  256. *** texinfo-3.1/makeinfo/Makefile.in    Fri May 21 18:30:18 1993
  257. --- texinfo-3.1-amiga/makeinfo/Makefile.in    Thu Feb 24 10:20:34 1994
  258. ***************
  259. *** 40,47 ****
  260.   SHELL = /bin/sh
  261.   
  262. ! CFLAGS = -g
  263. ! LDFLAGS = -g
  264.   
  265. ! prefix = /usr/local
  266.   exec_prefix = $(prefix)
  267.   bindir = $(exec_prefix)/bin
  268. --- 40,47 ----
  269.   SHELL = /bin/sh
  270.   
  271. ! CFLAGS = -O2
  272. ! LDFLAGS =
  273.   
  274. ! prefix = /gnu
  275.   exec_prefix = $(prefix)
  276.   bindir = $(exec_prefix)/bin
  277. diff -2rcN texinfo-3.1/makeinfo/makeinfo.c texinfo-3.1-amiga/makeinfo/makeinfo.c
  278. *** texinfo-3.1/makeinfo/makeinfo.c    Sat May 22 23:29:46 1993
  279. --- texinfo-3.1-amiga/makeinfo/makeinfo.c    Sat Jul 23 14:29:47 1994
  280. ***************
  281. *** 73,77 ****
  282. --- 73,79 ----
  283.   #include <sys/stat.h>
  284.   #include <ctype.h>
  285. + #if !defined (amigados)
  286.   #include <pwd.h>
  287. + #endif /* amigados */
  288.   #include <errno.h>
  289.   #if defined (HAVE_VARARGS_H)
  290. ***************
  291. *** 445,448 ****
  292. --- 447,457 ----
  293.   int verbose_mode = 0;
  294.   
  295. + /* Non-zero means converting to AmigaGuide hypertext format. */
  296. + int amiga_guide = 0;
  297. + /* Non-zero means we are writing an AmigaGuide button. */
  298. + int in_amiga_guide_button = 0;
  299.   /* The list of commands that we hack in texinfo.  Each one
  300.      has an associated function.  When the command is encountered in the
  301. ***************
  302. *** 768,771 ****
  303. --- 777,781 ----
  304.     { "verbose", 0, &verbose_mode, 1 },        /* formerly -verbose */
  305.     { "version", 0, 0, 'V' },
  306. +   { "amiga", 0, &amiga_guide, 1},               /* convert to AmigaGuide® */
  307.     {NULL, 0, NULL, 0}
  308.   };
  309. ***************
  310. *** 876,879 ****
  311. --- 886,893 ----
  312.       print_version_info ();
  313.   
  314. +   /* if --amiga option is specified, do not split large files */
  315. +   if (amiga_guide)
  316. +      splitting=0;
  317.     /* Remaining arguments are file names of texinfo files.
  318.        Convert them, one by one. */
  319. ***************
  320. *** 979,983 ****
  321.                         either be `separate' to place footnotes in their own\n\
  322.                         node, or `end', to place the footnotes at the end of\n\
  323. !                       the node in which they are defined (the default).\n\n",
  324.          progname, paragraph_start_indent,
  325.          fill_column, max_error_level, reference_warning_limit);
  326. --- 993,998 ----
  327.                         either be `separate' to place footnotes in their own\n\
  328.                         node, or `end', to place the footnotes at the end of\n\
  329. !                       the node in which they are defined (the default).\n\
  330. ! `--amiga'             to convert to AmigaGuide® hypertext format \n\n",
  331.          progname, paragraph_start_indent,
  332.          fill_column, max_error_level, reference_warning_limit);
  333. ***************
  334. *** 999,1003 ****
  335.      function to something, or you will lose the chain. */
  336.   GENERIC_LIST *
  337. ! reverse_list (list)
  338.        register GENERIC_LIST *list;
  339.   {
  340. --- 1014,1018 ----
  341.      function to something, or you will lose the chain. */
  342.   GENERIC_LIST *
  343. ! reverse_list (list) 
  344.        register GENERIC_LIST *list;
  345.   {
  346. ***************
  347. *** 1176,1182 ****
  348.        char *filename;
  349.   {
  350. !   char *basename;
  351.   
  352. !   basename = strrchr (filename, '/');
  353.     if (!basename)
  354.       basename = filename;
  355. --- 1191,1198 ----
  356.        char *filename;
  357.   {
  358. !   char *basename=strrchr (filename, '/'),
  359. !        *basename2=strrchr (filename, ':');
  360.   
  361. !   basename = (int)basename > (int)basename2 ? basename : basename2;
  362.     if (!basename)
  363.       basename = filename;
  364. ***************
  365. *** 1212,1219 ****
  366. --- 1228,1243 ----
  367.     i = strlen (filename) - 1;
  368.   
  369. + #if !defined (amigados)
  370.     while (i && filename[i] != '/')
  371.       i--;
  372.     if (filename[i] == '/')
  373.       i++;
  374. + #else /* amigados */
  375. +   while (i && (filename[i] != '/') && (filename[i] != ':'))
  376. +     i--;
  377. +   if ((filename[i] == '/') || (filename[i] == ':'))
  378. +    i++;
  379. + #endif /* amigados */
  380.   
  381.     if (i)
  382. ***************
  383. *** 1233,1236 ****
  384. --- 1257,1262 ----
  385.   {
  386.     char *full_pathname ();
  387. + #if !defined(amigados)
  388.     filename = full_pathname (filename);
  389.   
  390. ***************
  391. *** 1258,1261 ****
  392. --- 1284,1314 ----
  393.       }
  394.     return (filename);
  395. + #else /* amigados */
  396. +   int i = 0;
  397. +   char *result;
  398. +   filename = full_pathname (filename);
  399. +   while(filename[i] && filename[i] != ':')
  400. +     i++;
  401. +   if (!*input_name || filename[i] == ':') return(filename);
  402. +   i = strlen (input_name) - 1;
  403. +   result = (char *)xmalloc (1 + strlen (input_name) + strlen (filename));
  404. +   strcpy (result, input_name);
  405. +   while (i && result[i] != '/' && result[i] != ':')
  406. +     i--;
  407. +   if (result[i] == '/' || result[i] == ':')
  408. +     i++;
  409. +   strcpy (&result[i], filename);
  410. +   free (filename);
  411. +   return (result);
  412. + #endif /* amigados */
  413.   }
  414.   
  415. ***************
  416. *** 1265,1268 ****
  417. --- 1318,1322 ----
  418.        char *filename;
  419.   {
  420. + #if !defined(amigados)
  421.     int initial_character;
  422.   
  423. ***************
  424. *** 1328,1331 ****
  425. --- 1382,1388 ----
  426.         return (savestring (filename));
  427.       }
  428. + #else /* amigados */
  429. +     return (savestring (filename));
  430. + #endif /* amigados */
  431.   }
  432.   
  433. ***************
  434. *** 1785,1789 ****
  435.   
  436.     canon_white (output_filename);
  437. !   printf ("Making info file `%s' from `%s'.\n", output_filename, name);
  438.   
  439.     if (verbose_mode)
  440. --- 1842,1854 ----
  441.   
  442.     canon_white (output_filename);
  443. !   if (amiga_guide) {
  444. !     if (no_headers)
  445. !       printf ("Making ASCII file `%s' from `%s'.\n", output_filename, name);
  446. !     else
  447. !       printf ("Making AmigaGuide® file `%s' from `%s'.\n", output_filename, name);
  448. !   }
  449. !   else
  450. !     printf ("Making info file `%s' from `%s'.\n", output_filename, name);
  451.   
  452.     if (verbose_mode)
  453. ***************
  454. *** 1828,1834 ****
  455.     if (!no_headers)
  456.       {
  457. !       add_word_args ("This is Info file %s, produced by Makeinfo-%d.%d from ",
  458. !              output_filename, major_version, minor_version);
  459. !       add_word_args ("the input file %s.\n", input_filename);
  460.       }
  461.   
  462. --- 1893,1921 ----
  463.     if (!no_headers)
  464.       {
  465. !       if (amiga_guide)
  466. !         {
  467. !           int old_paragraph_indentation = inhibit_paragraph_indentation;
  468. !           int old_filling_enabled = filling_enabled;
  469. !           inhibit_paragraph_indentation=1;
  470. !           filling_enabled = 0;
  471. !           add_word_args ("@database %s\n",output_filename);
  472. !           add_word_args ("\n@Master %s\n", input_filename);
  473. !           add_word_args ("\n@Width %d\n",fill_column);
  474. !           add_word_args ("\n\nThis is the AmigaGuide® file %s, produced by Makeinfo-%d.%d from ",
  475. !                      output_filename, major_version, minor_version);
  476. !           add_word_args ("\nthe input file %s.\n\n", input_filename);
  477. !           inhibit_paragraph_indentation = old_paragraph_indentation;
  478. !           filling_enabled = old_filling_enabled;
  479. !         }
  480. !       else
  481. !         {
  482. !           add_word_args ("This is Info file %s, produced by Makeinfo-%d.%d from ",
  483. !                       output_filename, major_version, minor_version);
  484. !           add_word_args ("the input file %s.\n", input_filename);
  485. !         }
  486.       }
  487.   
  488. ***************
  489. *** 1846,1854 ****
  490.       {
  491.         tag_table = (TAG_ENTRY *) reverse_list (tag_table);
  492. !       if (!no_headers)
  493.           write_tag_table ();
  494.       }
  495.   
  496. !       if (output_stream != stdout)
  497.       fclose (output_stream);
  498.   
  499. --- 1933,1947 ----
  500.       {
  501.         tag_table = (TAG_ENTRY *) reverse_list (tag_table);
  502. !       if (!no_headers && !amiga_guide)
  503.           write_tag_table ();
  504.       }
  505.   
  506. !       if (amiga_guide && !no_headers)
  507. !         {
  508. !           inhibit_paragraph_indentation = 1;
  509. !           add_word("\n\n@EndNode\n\n");
  510. !         }
  511. !      if (output_stream != stdout)
  512.       fclose (output_stream);
  513.   
  514. ***************
  515. *** 1977,1980 ****
  516. --- 2070,2074 ----
  517.           {
  518.             char *glean_node_from_menu (), *tem;
  519. +               int amiga_guide_convert_menu ();
  520.   
  521.             /* Note that the value of TEM is discarded, since it is
  522. ***************
  523. *** 1982,1985 ****
  524. --- 2076,2085 ----
  525.            called with a non-zero argument. */
  526.             tem = glean_node_from_menu (1);
  527. +               if (amiga_guide && !no_headers)
  528. +                 {
  529. +                   if (amiga_guide_convert_menu())
  530. +                     continue;
  531. +                 }
  532.           }
  533.       }
  534. ***************
  535. *** 2246,2249 ****
  536. --- 2346,2352 ----
  537.   int line_already_broken = 0;
  538.   
  539. + /* AmigaGuide --- Set to the number of hidden chars in the last @Node */
  540. + int amiga_guide_hidden_chars = 0;
  541.   /* When non-zero we have finished an insertion (see end_insertion ()) and we
  542.      want to ignore false continued paragraph closings. */
  543. ***************
  544. *** 2266,2270 ****
  545.         must_start_paragraph = 0;
  546.         line_already_broken = 0;    /* The line is no longer broken. */
  547. !       if (current_indent > output_column)
  548.       {
  549.         indent (current_indent - output_column);
  550. --- 2369,2373 ----
  551.         must_start_paragraph = 0;
  552.         line_already_broken = 0;    /* The line is no longer broken. */
  553. !       if ((current_indent > output_column) && (!amiga_guide || !in_amiga_guide_button))
  554.       {
  555.         indent (current_indent - output_column);
  556. ***************
  557. *** 2294,2298 ****
  558.         output_column = 0;
  559.   
  560. !       if (!no_indent && paragraph_is_open)
  561.           indent (output_column = current_indent);
  562.         break;
  563. --- 2397,2401 ----
  564.         output_column = 0;
  565.   
  566. !       if ((!no_indent && paragraph_is_open) && (!amiga_guide || !in_amiga_guide_button))
  567.           indent (output_column = current_indent);
  568.         break;
  569. ***************
  570. *** 2342,2346 ****
  571.              then discard all of the pending whitespace.  Otherwise, we
  572.              let the whitespace stay. */
  573. !         if (!paragraph_start_indent)
  574.             indent (pending_indent);
  575.           pending_indent = 0;
  576. --- 2445,2449 ----
  577.              then discard all of the pending whitespace.  Otherwise, we
  578.              let the whitespace stay. */
  579. !         if (!paragraph_start_indent && (!amiga_guide || !in_amiga_guide_button))
  580.             indent (pending_indent);
  581.           pending_indent = 0;
  582. ***************
  583. *** 2435,2438 ****
  584. --- 2538,2543 ----
  585.                 }
  586.               output_column = 0;
  587. +                         if (amiga_guide && !strncmp("@{\"", &output_paragraph[temp+current_indent], 3))
  588. +                           output_column = -amiga_guide_hidden_chars;
  589.               while (temp < output_paragraph_offset)
  590.                 output_column +=
  591. ***************
  592. *** 2711,2715 ****
  593.   
  594.         /* If doing indentation, then insert the appropriate amount. */
  595. !       if (!no_indent)
  596.       {
  597.         if (inhibit_paragraph_indentation)
  598. --- 2816,2820 ----
  599.   
  600.         /* If doing indentation, then insert the appropriate amount. */
  601. !       if (!no_indent && (!amiga_guide || !in_amiga_guide_button))
  602.       {
  603.         if (inhibit_paragraph_indentation)
  604. ***************
  605. *** 3068,3072 ****
  606.         inhibit_paragraph_indentation = 1;
  607.   
  608. !       if (!no_headers)
  609.       add_word ("* Menu:\n");
  610.   
  611. --- 3173,3177 ----
  612.         inhibit_paragraph_indentation = 1;
  613.   
  614. !       if (!no_headers && !amiga_guide)
  615.       add_word ("* Menu:\n");
  616.   
  617. ***************
  618. *** 3983,3986 ****
  619. --- 4088,4100 ----
  620.         l--;
  621.       }
  622. +       else if (amiga_guide)
  623. +         {
  624. +           if (string[i] == '/')
  625. +             string[i] = '-';
  626. +           else
  627. +           if (string[i] == '\"')
  628. +             string[i] = '`';
  629. +         }
  630.       }
  631.     if (stricmp (string, "Top") == 0)
  632. ***************
  633. *** 4054,4057 ****
  634. --- 4168,4172 ----
  635.     char *node, *prev, *next, *up;
  636.     int new_node_pos, defaulting, this_section, no_warn = 0;
  637. +   static amiga_guide_first_node = 1;
  638.     extern int already_outputting_pending_notes;
  639.   
  640. ***************
  641. *** 4084,4089 ****
  642.     no_indent = 1;
  643.     if (!no_headers)
  644. !     add_word_args ("\037\nFile: %s,  Node: %s", pretty_output_filename, node);
  645.     /* Check for defaulting of this node's next, prev, and up fields. */
  646.     defaulting = ((strlen (next) == 0) &&
  647. --- 4199,4221 ----
  648.     no_indent = 1;
  649.     if (!no_headers)
  650. !     {
  651. !       if (amiga_guide)
  652. !         /* if amiga_guide_first_node is set to 1, then we are
  653. !            considering the first node of the database. */
  654. !         {
  655. !           if (amiga_guide_first_node)
  656. !             {
  657. !               add_word_args ("\n@Node Main \"%s\"", output_filename);
  658. !               amiga_guide_first_node = 0;
  659. !             }
  660. !           else
  661. !             {
  662. !               add_word_args("\n@EndNode\n\n");
  663. !               add_word_args ("@Node \"%s\" \"%s/%s\"",node,pretty_output_filename,node);
  664. !             }
  665. !         }
  666. !       else
  667. !         add_word_args ("\037\nFile: %s,  Node: %s", pretty_output_filename, node);
  668. !     }
  669.     /* Check for defaulting of this node's next, prev, and up fields. */
  670.     defaulting = ((strlen (next) == 0) &&
  671. ***************
  672. *** 4150,4155 ****
  673.               free (next);
  674.               next = nodename_from_menu;
  675. !             prev = savestring ("(DIR)");
  676. !             up = savestring ("(DIR)");
  677.                 }
  678.             }
  679. --- 4282,4290 ----
  680.               free (next);
  681.               next = nodename_from_menu;
  682. !             if (!amiga_guide)
  683. !                           {
  684. !                 prev = savestring ("(DIR)");
  685. !                 up = savestring ("(DIR)");
  686. !                           }
  687.                 }
  688.             }
  689. ***************
  690. *** 4206,4217 ****
  691.     if (!no_headers)
  692.       {
  693. !       if (*next)
  694. !     add_word_args (",  Next: %s", next);
  695. !       if (*prev)
  696. !     add_word_args (",  Prev: %s", prev);
  697. !       if (*up)
  698. !     add_word_args (",  Up: %s", up);
  699.       }
  700.   
  701. --- 4341,4386 ----
  702.     if (!no_headers)
  703.       {
  704. !       if (amiga_guide)
  705. !         {
  706. !           if (*next)
  707. !              {
  708. !                 if (stricmp (next, "Top") == 0)
  709. !                    add_word_args ("\n@Next \"Main\"");
  710. !                 else
  711. !                    add_word_args ("\n@Next \"%s\"", next);
  712. !              }
  713. !           if (*prev)
  714. !             {
  715. !               if (stricmp (prev, "(DIR)") != 0)
  716. !                 {
  717. !                 if (stricmp (prev, "Top") == 0)
  718. !                    add_word_args ("\n@Prev \"Main\"");
  719. !                  else
  720. !                     add_word_args ("\n@Prev \"%s\"", prev);
  721. !                 }
  722. !              }
  723. !           if (*up)
  724. !              {
  725. !                if (stricmp (up, "(DIR)") != 0)
  726. !                 {
  727. !                 if (stricmp (up, "Top") == 0)
  728. !                    add_word_args ("\n@Toc \"Main\"");
  729. !                 else
  730. !                    add_word_args ("\n@Toc \"%s\"", up);
  731. !                 }
  732. !              }
  733. !         }
  734. !       else
  735. !         {
  736. !           if (*next)
  737. !         add_word_args (",  Next: %s", next);
  738. !       if (*prev)
  739. !         add_word_args (",  Prev: %s", prev);
  740. !       if (*up)
  741. !         add_word_args (",  Up: %s", up);
  742. !         }
  743.       }
  744.   
  745. ***************
  746. *** 4871,4874 ****
  747. --- 5040,5134 ----
  748.   }
  749.   
  750. + int
  751. + amiga_guide_convert_menu ()
  752. + {
  753. +   int i;
  754. +   char *gadgetname;
  755. +   if (strncmp (&input_text[input_text_offset + 1],
  756. +                menu_starter,
  757. +                strlen (menu_starter)) != 0)
  758. +     return(0);
  759. +   else
  760. +     input_text_offset += strlen (menu_starter) + 1;
  761. +   get_until_in_line (":", &gadgetname);
  762. +   input_text_offset++;
  763. +   if (curchar () == ':')
  764. +     {
  765. +       input_text_offset++;
  766. +       canon_white (gadgetname);
  767. +       normalize_node_name (gadgetname);
  768. +       in_amiga_guide_button = 1;
  769. +       output_column -= (strlen("@{\"\" Link \"\"}") +
  770. +                         strlen(gadgetname));
  771. +       execute_string ("\n@w{ @@@{\" %s \" Link \"%s\"@} }", gadgetname, gadgetname);
  772. +       in_amiga_guide_button = 0;
  773. +     }
  774. +   else
  775. +     {
  776. +       char *set_p(char *);
  777. +       char *nodename;
  778. +       int nodestart;
  779. +       nodestart = input_text_offset;
  780. +       get_until_in_line (".", &nodename);
  781. +   /* Special hack: If the nodename follows the menu item name,
  782. +      then we have to read the rest of the line in order to find
  783. +      out what the nodename is.  But we still have to read the
  784. +      line later, in order to process any formatting commands that
  785. +      might be present.  So un-count the carriage return that has just
  786. +      been counted.
  787. +       line_number--; */
  788. +       canon_white (nodename);
  789. +       normalize_node_name (nodename);
  790. +       if (*nodename == '(')
  791. +         {
  792. +           for(i=1; i<strlen(nodename); i++)
  793. +             if (nodename[i] == ')') break;
  794. +           if (i == strlen(nodename)) return(0);
  795. +           nodename[i] = 0;
  796. +           in_amiga_guide_button = 1;
  797. +           output_column -= (strlen("@{\"\" Link \"/\"}") +
  798. +                             strlen(nodename+1)+strlen(nodename+i+1));
  799. +           execute_string ("\n@w{ @@@{\" %s \" Link \"%s/%s\"@} }", gadgetname, nodename+1, nodename+i+1);
  800. +           in_amiga_guide_button = 0;
  801. +         }
  802. +       else
  803. +         {
  804. +           in_amiga_guide_button = 1;
  805. +           output_column -= (strlen("@{\"\" Link \"\"}") +
  806. +                             strlen(nodename));
  807. +           execute_string ("\n@w{ @@@{\" %s \" Link \"%s\"@} }", gadgetname, nodename);
  808. +           in_amiga_guide_button = 0;
  809. +         }
  810. +       if (set_p("AmigaGuide-expand-menus"))
  811. +         {
  812. +           input_text_offset = nodestart;
  813. +         }
  814. +       else
  815. +         {
  816. +           for(i=0; i<input_text_offset-nodestart; i++) insert(' ');
  817. +           input_text_offset++;
  818. +         }
  819. +       free(nodename);
  820. +     }
  821. +   free(gadgetname);
  822. +   return(1);
  823. + }
  824.   cm_menu ()
  825.   {
  826. ***************
  827. *** 4896,4899 ****
  828. --- 5156,5160 ----
  829.   
  830.   int px_ref_flag = 0;        /* Controls initial output string. */
  831. + int ref_flag = 0;               /* Controls initial output string, too. */
  832.   
  833.   /* Make a cross reference. */
  834. ***************
  835. *** 4910,4913 ****
  836. --- 5171,5182 ----
  837.         arg5 = get_xref_token ();
  838.   
  839. +       if (amiga_guide) normalize_node_name(arg1);
  840. +       if (amiga_guide)
  841. +         {
  842. +           if (!ref_flag)
  843. +             add_word_args("%s", px_ref_flag ? "see " : "See ");
  844. +         }
  845. +       else
  846.         add_word_args ("%s", px_ref_flag ? "*note " : "*Note ");
  847.   
  848. ***************
  849. *** 4926,4930 ****
  850.           node_name = arg2;
  851.   
  852. !       execute_string ("%s: (%s)%s", node_name, arg4, arg1);
  853.         return;
  854.       }
  855. --- 5195,5217 ----
  856.           node_name = arg2;
  857.   
  858. !           if (amiga_guide)
  859. !             {
  860. !               if (no_headers)
  861. !                 {
  862. !                   execute_string ("%s/%s", arg4, node_name);
  863. !                 }
  864. !               else
  865. !                 {
  866. !                   in_amiga_guide_button = 1;
  867. !                   output_column -= (amiga_guide_hidden_chars = strlen("@{\"\" Link \"/\"}") +
  868. !                                     strlen(arg4)+strlen(arg1));
  869. !                   canon_white(node_name);
  870. !                   execute_string ("@w{@@@{\"%s\" Link \"%s/%s\"@}}", node_name, arg4, arg1);
  871. !                   in_amiga_guide_button = 0;
  872. !                 }
  873. !             }
  874. !           else
  875. !         execute_string ("%s: (%s)%s", node_name, arg4, arg1);
  876.         return;
  877.       }
  878. ***************
  879. *** 4934,4948 ****
  880.         if (*arg3)
  881.       {
  882. !       if (!*arg2)
  883. !         execute_string ("%s: %s", arg3, arg1);
  884. !       else
  885. !         execute_string ("%s: %s", arg2, arg1);
  886.         return;
  887.       }
  888.   
  889. !       if (*arg2)
  890. !     execute_string ("%s: %s", arg2, arg1);
  891. !       else
  892. !     execute_string ("%s::", arg1);
  893.       }
  894.     else
  895. --- 5221,5295 ----
  896.         if (*arg3)
  897.       {
  898. !           if (amiga_guide)
  899. !             {
  900. !               if (no_headers)
  901. !                 {
  902. !                   execute_string (arg1);
  903. !                 }
  904. !               else
  905. !                 {
  906. !                   in_amiga_guide_button = 1;
  907. !                   if (!*arg2)
  908. !                     {
  909. !                       output_column -= (amiga_guide_hidden_chars = strlen("@{\"\" Link \"\"}") +
  910. !                                         +strlen(arg1));
  911. !                       canon_white(arg3);
  912. !                       execute_string ("@w{@@@{\"%s\" Link \"%s\"@}}", arg3, arg1);
  913. !                     }
  914. !                   else
  915. !                     {
  916. !                       output_column -= (amiga_guide_hidden_chars = strlen("@{\"\" Link \"\"}") +
  917. !                                         +strlen(arg1));
  918. !                       canon_white(arg2);
  919. !                       execute_string ("@w{@@@{\"%s\" Link \"%s\"@}}", arg2, arg1);
  920. !                     }
  921. !                   in_amiga_guide_button = 0;
  922. !                 }
  923. !             }
  924. !           else
  925. !             {
  926. !           if (!*arg2)
  927. !             execute_string ("%s: %s", arg3, arg1);
  928. !           else
  929. !             execute_string ("%s: %s", arg2, arg1);
  930. !             }
  931.         return;
  932.       }
  933.   
  934. !     if (amiga_guide)
  935. !       {
  936. !         if (no_headers)
  937. !           {
  938. !             execute_string (arg1);
  939. !           }
  940. !         else
  941. !           {
  942. !             in_amiga_guide_button = 1;
  943. !             if (*arg2)
  944. !               {
  945. !                 output_column -= (amiga_guide_hidden_chars = strlen("@{\"\" Link \"\"}") +
  946. !                                   +strlen(arg1));
  947. !                 canon_white(arg2);
  948. !                 execute_string ("@w{@@@{\"%s\" Link \"%s\"@}}", arg2, arg1);
  949. !               }
  950. !             else
  951. !               {
  952. !                 output_column -= (amiga_guide_hidden_chars = strlen("@{\"\" Link \"\"}") +
  953. !                                   +strlen(arg1));
  954. !                 canon_white(arg1);
  955. !                 execute_string ("@w{@@@{\"%s\" Link \"%s\"@}}", arg1, arg1);
  956. !               }
  957. !               in_amiga_guide_button = 0;
  958. !           }
  959. !       }
  960. !     else
  961. !       {
  962. !         if (*arg2)
  963. !       execute_string ("%s: %s", arg2, arg1);
  964. !         else
  965. !       execute_string ("%s::", arg1);
  966. !       }
  967.       }
  968.     else
  969. ***************
  970. *** 4988,4992 ****
  971.       }
  972.     else
  973. !     add_char ('.');
  974.   }
  975.   
  976. --- 5335,5353 ----
  977.       }
  978.     else
  979. !     if (!amiga_guide)
  980. !       {
  981. !         add_char ('.');
  982. !       }
  983. ! }
  984. ! cm_ref (arg)
  985. !      int arg;
  986. ! {
  987. !   if (arg == START)
  988. !     {
  989. !       ref_flag++;
  990. !       cm_xref (arg);
  991. !       ref_flag--;
  992. !     }
  993.   }
  994.   
  995. ***************
  996. *** 5002,5006 ****
  997.         file = get_xref_token ();
  998.   
  999. !       execute_string ("*note %s: (%s)%s", pname, file, node);
  1000.       }
  1001.   }
  1002. --- 5363,5386 ----
  1003.         file = get_xref_token ();
  1004.   
  1005. !       if (amiga_guide)
  1006. !         {
  1007. !           add_word("See ");
  1008. !           if (no_headers)
  1009. !             {
  1010. !               execute_string ("%s/%s", file, node);
  1011. !             }
  1012. !           else
  1013. !             {
  1014. !               in_amiga_guide_button = 1;
  1015. !               output_column -= (amiga_guide_hidden_chars = strlen("@{\"\" Link \"/\"}") +
  1016. !                                 strlen(file)+strlen(node));
  1017. !               canon_white(pname);
  1018. !               execute_string ("@w{@@@{\"%s\" Link \"%s/%s\"@}}", pname, file, node);
  1019. !               in_amiga_guide_button = 0;
  1020. !             }
  1021. !         }
  1022. !       else
  1023. !         execute_string ("*note %s: (%s)%s", pname, file, node);
  1024.       }
  1025.   }
  1026. ***************
  1027. *** 6417,6421 ****
  1028.   cm_ignore_sentence_ender ()
  1029.   {
  1030. !   add_char (META ((*command)));
  1031.   }
  1032.   
  1033. --- 6797,6802 ----
  1034.   cm_ignore_sentence_ender ()
  1035.   {
  1036. !   if (amiga_guide) add_char (META ((*command - 32)));
  1037. !   else add_char (META ((*command)));
  1038.   }
  1039.   
  1040. ***************
  1041. *** 6886,6890 ****
  1042.     inhibit_paragraph_indentation = 1;
  1043.     close_paragraph ();
  1044. !   add_word ("* Menu:\n\n");
  1045.   
  1046.     printing_index = 1;
  1047. --- 7267,7279 ----
  1048.     inhibit_paragraph_indentation = 1;
  1049.     close_paragraph ();
  1050. !   if (amiga_guide)
  1051. !     {
  1052. !       add_word ("\x80");
  1053. !       output_paragraph_offset--;
  1054. !       add_word ("\n\n");
  1055. !     }
  1056. !    else
  1057. !      add_word ("* Menu:\n\n");
  1058.   
  1059.     printing_index = 1;
  1060. ***************
  1061. *** 6897,6913 ****
  1062.         line_number = index->defining_line;
  1063.   
  1064. !       /* If this particular entry should be printed as a "code" index,
  1065. !      then wrap the entry with "@code{...}". */
  1066. !       if (index->code)
  1067. !     execute_string ("* @code{%s}: ", index->entry);
  1068. !       else
  1069. !     execute_string ("* %s: ", index->entry);
  1070.   
  1071. !       /* Pad the front of the destination nodename so that
  1072. !      the output looks nice. */
  1073. !       if (fill_column > 40 && output_column < 40)
  1074. !     indent (40 - output_column);
  1075.   
  1076. !       execute_string ("%s.\n", index->node);
  1077.   
  1078.         line_number = real_line_number;
  1079. --- 7286,7346 ----
  1080.         line_number = index->defining_line;
  1081.   
  1082. !       if (amiga_guide)
  1083. !         {
  1084. !           /* If this particular entry should be printed as a "code" index,
  1085. !              then wrap the entry with "@code{...}". */
  1086. !           if (no_headers)
  1087. !             {
  1088. !               if (index->code)
  1089. !                 {
  1090. !                   execute_string (" `%s'", index->entry);
  1091. !                 }
  1092. !               else
  1093. !                 {
  1094. !                   execute_string (" %s", index->entry);
  1095. !                 }
  1096. !             }
  1097. !           else
  1098. !             {
  1099. !               in_amiga_guide_button = 1;
  1100. !               if (index->code)
  1101. !                 {
  1102. !                   output_column -= (amiga_guide_hidden_chars = strlen("@{\"\" Link \"\"}") +
  1103. !                                     strlen(index->node));
  1104. !                   execute_string ("@w{ @@@{\" @code{%s} \" Link \"%s\"@} }", index->entry, index->node);
  1105. !                 }
  1106. !               else
  1107. !                 {
  1108. !                   output_column -= (amiga_guide_hidden_chars = strlen("@{\"\" Link \"\"}") +
  1109. !                                     strlen(index->node));
  1110. !                   execute_string ("@w{ @@@{\" %s \" Link \"%s\"@} }", index->entry, index->node);
  1111. !                 }
  1112. !               in_amiga_guide_button = 0;
  1113. !             }
  1114. !           /* Pad the front of the destination nodename so that
  1115. !              the output looks nice. */
  1116. !           if (fill_column > 40 && output_column < 40)
  1117. !             indent (40 - output_column);
  1118.   
  1119. !           execute_string ("%s\n", index->node);
  1120. !         }
  1121. !       else
  1122. !         {
  1123. !           /* If this particular entry should be printed as a "code" index,
  1124. !          then wrap the entry with "@code{...}". */
  1125. !           if (index->code)
  1126. !         execute_string ("* @code{%s}: ", index->entry);
  1127. !           else
  1128. !         execute_string ("* %s: ", index->entry);
  1129. !           /* Pad the front of the destination nodename so that
  1130. !          the output looks nice. */
  1131. !           if (fill_column > 40 && output_column < 40)
  1132. !         indent (40 - output_column);
  1133.   
  1134. !           execute_string ("%s.\n", index->node);
  1135. !         }
  1136.   
  1137.         line_number = real_line_number;
  1138. ***************
  1139. *** 7170,7176 ****
  1140.           xmalloc ((strlen (current_node)) + (strlen ("-Footnotes")) + 1);
  1141.   
  1142. !       add_word_args (" (*note %s-Footnotes::)", current_node);
  1143.         strcpy (temp_string, current_node);
  1144.         strcat (temp_string, "-Footnotes");
  1145.         remember_node_reference (temp_string, line_number, followed_reference);
  1146.         free (temp_string);
  1147. --- 7603,7629 ----
  1148.           xmalloc ((strlen (current_node)) + (strlen ("-Footnotes")) + 1);
  1149.   
  1150. !           if (amiga_guide)
  1151. !             {
  1152. !               if (no_headers)
  1153. !                 {
  1154. !                   execute_string ("%s-Footnotes", current_node);
  1155. !                 }
  1156. !               else
  1157. !                 {
  1158. !                   in_amiga_guide_button = 1;
  1159. !                   output_column -= (amiga_guide_hidden_chars = strlen("@{\"\" Link \"-Footnotes\"}")
  1160. !                                     +strlen(current_node));
  1161. !                   execute_string ("@w{@@@{\"%s-Footnotes\" Link \"%s-Footnotes\"@}}", current_node, current_node);
  1162. !                   in_amiga_guide_button = 0;
  1163. !                 }
  1164. !             }
  1165. !           else
  1166. !             {
  1167. !               add_word_args (" (*note %s-Footnotes::)", current_node);
  1168. !             }
  1169.         strcpy (temp_string, current_node);
  1170.         strcat (temp_string, "-Footnotes");
  1171. +           if (amiga_guide) normalize_node_name(temp_string);
  1172.         remember_node_reference (temp_string, line_number, followed_reference);
  1173.         free (temp_string);
  1174. ***************
  1175. *** 7513,7516 ****
  1176. --- 7966,7970 ----
  1177.       path = ".";
  1178.   
  1179. + #if !defined(amigados)
  1180.     /* Handle absolute pathnames. "./foo", "/foo", "../foo". */
  1181.     if (*filename == '/' ||
  1182. ***************
  1183. *** 7524,7527 ****
  1184. --- 7978,7982 ----
  1185.       return ((char *)NULL);
  1186.       }
  1187. + #endif
  1188.   
  1189.     while (dir = extract_colon_unit (path, &index))
  1190. ***************
  1191. *** 7536,7540 ****
  1192. --- 7991,8001 ----
  1193.   
  1194.         fullpath = (char *)xmalloc (2 + strlen (dir) + strlen (filename));
  1195. + #if !defined(amigados)
  1196.         sprintf (fullpath, "%s/%s", dir, filename);
  1197. + #else /* amigados */
  1198. +       if (strcmp (dir, ".")) sprintf (fullpath, "%s/%s", dir, filename);
  1199. +       else sprintf (fullpath, "%s", filename);
  1200. + #endif /* amigados */
  1201.         free (dir);
  1202.   
  1203. diff -2rcN texinfo-3.1/texi.texi texinfo-3.1-amiga/texi.texi
  1204. *** texinfo-3.1/texi.texi    Fri May 21 20:56:56 1993
  1205. --- texinfo-3.1-amiga/texi.texi    Thu Feb 24 10:16:17 1994
  1206. ***************
  1207. *** 822,830 ****
  1208.   
  1209.   @c !!! dir file may be located in one of many places:
  1210. ! @c     /usr/local/emacs/info            mentioned in info.c DEFAULT_INFOPATH
  1211. ! @c     /usr/local/lib/emacs/info        mentioned in info.c DEFAULT_INFOPATH
  1212. ! @c     /usr/gnu/info                    mentioned in info.c DEFAULT_INFOPATH
  1213. ! @c     /usr/local/info
  1214. ! @c     /usr/local/lib/info 
  1215.   The @file{dir} file in the @file{info} directory serves as the
  1216.   departure point for the whole Info system.  From it, you can reach the
  1217. --- 822,827 ----
  1218.   
  1219.   @c !!! dir file may be located in one of many places:
  1220. ! @c     /gnu/lib/emacs/info        mentioned in info.c DEFAULT_INFOPATH
  1221. ! @c     /gnu/lib/info              mentioned in info.c DEFAULT_INFOPATH
  1222.   The @file{dir} file in the @file{info} directory serves as the
  1223.   departure point for the whole Info system.  From it, you can reach the
  1224. ***************
  1225. *** 6409,6413 ****
  1226.   @example
  1227.   The @@file@{.el@} files are in 
  1228. ! the @@file@{/usr/local/emacs/lisp@} directory.
  1229.   @end example
  1230.   
  1231. --- 6406,6410 ----
  1232.   @example
  1233.   The @@file@{.el@} files are in 
  1234. ! the @@file@{/gnu/emacs/lisp@} directory.
  1235.   @end example
  1236.   
  1237. ***************
  1238. *** 6417,6421 ****
  1239.   @quotation
  1240.   The @file{.el} files are in 
  1241. ! the @file{/usr/local/emacs/lisp} directory.
  1242.   @end quotation
  1243.   
  1244. --- 6414,6418 ----
  1245.   @quotation
  1246.   The @file{.el} files are in 
  1247. ! the @file{/gnu/emacs/lisp} directory.
  1248.   @end quotation
  1249.   
  1250. ***************
  1251. *** 7228,7232 ****
  1252.   @@cartouche
  1253.   % pwd
  1254. ! /usr/local/lib/emacs/info
  1255.   @@end cartouche
  1256.   @@end example
  1257. --- 7225,7229 ----
  1258.   @@cartouche
  1259.   % pwd
  1260. ! /gnu/lib/emacs/info
  1261.   @@end cartouche
  1262.   @@end example
  1263. ***************
  1264. *** 7245,7249 ****
  1265.   @cartouche
  1266.   % pwd
  1267. ! /usr/local/lib/emacs/info
  1268.   @end cartouche
  1269.   @end group
  1270. --- 7242,7246 ----
  1271.   @cartouche
  1272.   % pwd
  1273. ! /gnu/lib/emacs/info
  1274.   @end cartouche
  1275.   @end group
  1276. ***************
  1277. *** 12133,12137 ****
  1278.   
  1279.   @smallexample
  1280. ! setenv INFOPATH .:~bob/manuals:/usr/local/emacs/info
  1281.   @end smallexample
  1282.   
  1283. --- 12130,12134 ----
  1284.   
  1285.   @smallexample
  1286. ! setenv INFOPATH .:~bob/manuals:/gnu/emacs/info
  1287.   @end smallexample
  1288.   
  1289. ***************
  1290. *** 12141,12145 ****
  1291.   
  1292.   @smallexample
  1293. ! INFOPATH=.:~bob/manuals:/usr/local/emacs/info
  1294.   export INFOPATH
  1295.   @end smallexample
  1296. --- 12138,12142 ----
  1297.   
  1298.   @smallexample
  1299. ! INFOPATH=.:~bob/manuals:/gnu/emacs/info
  1300.   export INFOPATH
  1301.   @end smallexample
  1302. ***************
  1303. *** 12149,12153 ****
  1304.   Either form would cause Info to look first in the current directory,
  1305.   indicated by the @samp{.}, then in the @file{~bob/manuals} directory,
  1306. ! and finally in the @file{/usr/local/emacs/info} directory (which is
  1307.   a common location for the standard Info directory).@refill
  1308.   
  1309. --- 12146,12150 ----
  1310.   Either form would cause Info to look first in the current directory,
  1311.   indicated by the @samp{.}, then in the @file{~bob/manuals} directory,
  1312. ! and finally in the @file{/gnu/emacs/info} directory (which is
  1313.   a common location for the standard Info directory).@refill
  1314.   
  1315. diff -2rcN texinfo-3.1/util/Makefile.in texinfo-3.1-amiga/util/Makefile.in
  1316. *** texinfo-3.1/util/Makefile.in    Sun May 23 00:01:53 1993
  1317. --- texinfo-3.1-amiga/util/Makefile.in    Thu Feb 24 10:20:45 1994
  1318. ***************
  1319. *** 39,46 ****
  1320.   SHELL = /bin/sh
  1321.   
  1322. ! CFLAGS = -g
  1323. ! LDFLAGS = -g
  1324.   
  1325. ! prefix = /usr/local
  1326.   exec_prefix = $(prefix)
  1327.   bindir = $(exec_prefix)/bin
  1328. --- 39,46 ----
  1329.   SHELL = /bin/sh
  1330.   
  1331. ! CFLAGS = -O2
  1332. ! LDFLAGS =
  1333.   
  1334. ! prefix = /gnu
  1335.   exec_prefix = $(prefix)
  1336.   bindir = $(exec_prefix)/bin
  1337. diff -2rcN texinfo-3.1/util/fixfonts texinfo-3.1-amiga/util/fixfonts
  1338. *** texinfo-3.1/util/fixfonts    Fri Apr 16 10:35:07 1993
  1339. --- texinfo-3.1-amiga/util/fixfonts    Thu Feb 24 10:21:13 1994
  1340. ***************
  1341. *** 6,10 ****
  1342.   # already defined in the environment. 
  1343.   if test "z${prefix}" = "z" ; then
  1344. !   prefix=/usr/local
  1345.   else
  1346.     # prefix may contain references to other variables, thanks to make.
  1347. --- 6,10 ----
  1348.   # already defined in the environment. 
  1349.   if test "z${prefix}" = "z" ; then
  1350. !   prefix=/local
  1351.   else
  1352.     # prefix may contain references to other variables, thanks to make.
  1353. diff -2rcN texinfo-3.1/util/texindex.c texinfo-3.1-amiga/util/texindex.c
  1354. *** texinfo-3.1/util/texindex.c    Fri Dec 11 16:19:49 1992
  1355. --- texinfo-3.1-amiga/util/texindex.c    Thu Feb 24 11:20:13 1994
  1356. ***************
  1357. *** 188,192 ****
  1358.   #define MAX_IN_CORE_SORT 500000
  1359.   
  1360. ! void
  1361.   main (argc, argv)
  1362.        int argc;
  1363. --- 188,192 ----
  1364.   #define MAX_IN_CORE_SORT 500000
  1365.   
  1366. ! int
  1367.   main (argc, argv)
  1368.        int argc;
  1369.